//package com.sxkf.template.controller;
//import com.sxkf.core.api.vo.R;
//import com.sxkf.template.entity.Brand;
//import com.sxkf.template.service.BrandService;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.web.bind.annotation.*;
//
//import javax.annotation.Resource;
//import java.util.List;
//
///**
//* (t_brand)表控制层
//*
//* @author zgc
//*/
//@Api(tags="品牌模块")
//@RestController
//@RequestMapping("/t_brand")
//public class BrandController {
///**
//* 服务对象
//*/
//    @Resource
//    private BrandService brandService;
//
//    @ApiOperation("创建品牌信息")
//    @PostMapping("/createBrand")
//    public R<Boolean> createBrand(@RequestBody Brand brand){
//        return R.success(brandService.save(brand));
//    }
//
//    @ApiOperation("更新品牌信息")
//    @PostMapping("/updateBrand")
//    public R<Boolean> updateBrand(@RequestBody Brand brand) {
//        return R.success(brandService.updateById(brand));
//    }
//
//    @ApiOperation("查询品牌信息")
//    @GetMapping("/listBrand")
//    public R<List<Brand>> listBrand() {
//        return R.success(brandService.list());
//    }
//
//    @ApiOperation("删除品牌信息")
//    @PostMapping("/deleteBrand")
//    public R<Boolean> deleteBrand(@RequestParam String id) {
//        return R.success(brandService.removeById(id));
//    }
//}
